<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>抛物线</title>
</head>
<style>
    img {
        width: 70px;
        height: 50px;
        position: absolute;
        top: 500px;
        left: 100px;
        cursor: pointer;
    }

    #isEnd {
        width: 50px;
        height: 50px;
        background-color: red;
        position: absolute;
        top: 300px;
        left: 1200px;
    }
</style>
<body>
<div draggable="false"><img src="../img/lanqiu.jpg" draggable="false"></div>
<div id="isEnd"></div>
<input type="button" value="aaaa" id="cac">
<script src="../modules/jquery.js"></script>
<script src="../static/Parabola.js"></script>
<script>
    var initNum = {
        startSpot: '',
        endSpot: ''
    }

    $.fn.extend({
        add: function (a, b, callback) {
            var c = a + b;
            callback(c);
        },
        clickMe: function () {
            $(this).click(function () {
                alert(this.value);
            })
        }
    })

    /*$.add(30, 10, function (c) {
     console.log('相加的结果是：' + c);
     });*/

    $('#cac').clickMe();
    $('#cac').add(30, 10, function (c) {
        console.log('相加的结果是：' + c);
    })
</script>
</body>
</html>